<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>equal</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab symbol</center>
    <div align="right">Last update : 30/05/2006</div>
    <p>
      <b>equal</b> -  (=) assignment , comparison, equal sign</p>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <dl>
      <dd>
        <b>Assignment:</b>The equal sign  <tt>
          <b>=</b>
        </tt> is used to denote the assignment of value(s) to
	  variable(s). The syntax can be :<dl>
          <dd>
            <b></b>
            <tt>
              <b>a=expr</b>
            </tt> where
	  <tt>
              <b>a</b>
            </tt> is a variable name and <tt>
              <b>expr</b>
            </tt> a scilab
	  expression which evaluates to a single result.</dd>
          <dd>
            <b></b>
            <tt>
              <b>[a,b,...]=expr</b>
            </tt> where
	    <tt>
              <b>a</b>
            </tt>,<tt>
              <b>b</b>
            </tt>,<tt>
              <b>...</b>
            </tt> are variable names and <tt>
              <b>expr</b>
            </tt> a scilab
	    expression which results in as many results as given variable
	    names.</dd>
        </dl>
      </dd>
      <dd>
        <b>Comparison:</b>The equal sign  <tt>
          <b>=</b>
        </tt> is also used in the comparison
	  operators:<dl>
          <dd>
            <b></b>
            <tt>
              <b>a==b</b>
            </tt>, denotes equality comparison between the values
	      of the expressions <tt>
              <b> a</b>
            </tt> and <tt>
              <b>b</b>
            </tt>.</dd>
          <dd>
            <b></b>
            <tt>
              <b>a~=b</b>
            </tt>, denotes inequality comparison between the values
	      of the  expressions <tt>
              <b>a</b>
            </tt> and <tt>
              <b> b</b>
            </tt>:</dd>
          <dd>
            <b></b>
            <tt>
              <b>a&lt;=b</b>
            </tt> and <tt>
              <b>a&gt;=b</b>
            </tt>  denotes ordering
	      comparison between the values of the expressions <tt>
              <b> a</b>
            </tt>
	      and <tt>
              <b> b</b>
            </tt>:</dd>
        </dl>See <a href="comparison.htm">
          <tt>
            <b>comparison</b>
          </tt>
        </a> for semantic details.</dd>
    </dl>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>
    
    a = sin(3.2)
    M = [2.1,3.3,8.5;7.6,6.7,6.9;0,6.3,8.8];
    [u,s] = schur(M)
    [1:10] == 4 
    1~=2
    
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="less.htm">
        <tt>
          <b>less</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="less.htm">
        <tt>
          <b>great</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="boolean.htm">
        <tt>
          <b>boolean</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../elementary/isequal.htm">
        <tt>
          <b>isequal</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="comparison.htm">
        <tt>
          <b>comparison</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
